package com.yanle.pattern.singleton;

/**
 * @Description: ${todo}
 * @Author Richard
 * @Date 2018/4/11 15:22
 */
public class SingletonTest {

    public static void main(String[] args) {
        LazySingleton lazySingleton = LazySingleton.getInstance();
        SynchronizedLazySingleton synchronizedLazySingleton = SynchronizedLazySingleton.getInstance();
        HungrySingleton hungrySingleton = HungrySingleton.getInstance();
        BetterHungrySingleton betterHungrySingleton = BetterHungrySingleton.getInstance();
        StaticInnerClassSingleton staticInnerClassSingleton = StaticInnerClassSingleton.getInstance();
        EnumSingleton enumSingleton = EnumSingleton.INSTANCE;


    }
}
